package crudfx.util;

public class ThreadTask {
    public void threadAction() {
        System.out.println("crudfx.util.ThreadTask.threadAction()");
        };
    public void go() {
        //System.out.println("crudfx.util.ThreadTask.go()");
        SwingWorker worker = new SwingWorker<Void, Void>(){
            @Override
            public Void doInBackground() {
                //System.out.println("crudfx.util.ThreadTask.doInBackground()");
                threadAction();
                return null;
                }
            };
        worker.execute();
        };
    }
